package org.jash.common.net

import com.google.gson.FieldNamingPolicy
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import org.jash.common.BuildConfig
import retrofit2.converter.gson.GsonConverterFactory

val client: OkHttpClient by lazy {
    OkHttpClient.Builder()

        .build()
}
val gson: Gson by lazy {
    GsonBuilder()
        .create()
}
val retrofit by lazy {
    Retrofit.Builder()
        .baseUrl(BuildConfig.HOST_URL)
        .client(client)
        .addConverterFactory(GsonConverterFactory.create(gson))
        .build()
}
